package com.atguigu.gulimall.product.feign;

import com.atguigu.gulimall.product.vo.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeignService {

    /**
     * 根据skuId查询是否有库存
     */
    @GetMapping("/ware/waresku/skuIdsHasStock")
    // @RequiresPermissions("ware:waresku:list")
     List<SkuHasStockVo> skuIdsHasStock(@RequestParam List<Long> skuIds);

}
